﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace InventoryManagementServer
{
    public class UploadProducts : HttpHandlerBase
    {
        public override void ProcessRequest(User user, HttpRequest request, string requestBody, HttpResponse response, ref string responseBody)
        {
            var products = XmlSerializer.Deserialize<Product[]>(requestBody);

            DataStore.AddProducts(user, products);
        }
    }
}